package com.seal.commons.infrastructure.redis.exception;

import com.seal.commons.exception.BusinessException;
import com.seal.commons.exception.ErrorCode;

/**
 * 功能描述: <br/>
 *
 * @author yong.huang
 * @date: 2020-07-18 11:15<br/>
 * @since JDK 1.8
 */
public class SerializationException extends BusinessException {

    private static final  int ERROR_CODE = 002;

    public SerializationException(ErrorCode errorCode) {
        super(errorCode);
    }

    public SerializationException(ErrorCode errorCode, Throwable throwable) {
        super(errorCode, throwable);
    }

    public SerializationException(String message, Throwable throwable){
        super(ERROR_CODE, message, throwable);
    }

}